<script>
import LeftMenuView from "@/views/LeftMenuView.vue";
import RightContentView from "@/views/RightContentView.vue";

export default {
  name: "HomeView",
  components: {RightContentView, LeftMenuView},
  data(){
    return{
      show:false,
      nav:['小区管理']
    }
  },
  methods:{
    acceptRightShow(value){
      this.show=value;
    },
    acceptLeftNav(arr){
      console.log(arr);
      this.nav=arr;
      console.log(this.nav)

    }
  }
}
</script>

<template>
  <div class="home">
    <LeftMenuView :is-collapse="show" @navigateEvent="acceptLeftNav"></LeftMenuView>
    <RightContentView @changeShowEvent="acceptRightShow" :nav="nav"></RightContentView>
  </div>
</template>

<style scoped>

</style>
<!--HomeView当个中间人传值-->